// 登录接口需要携带参数ts类型
interface LoginForm {
    username: string,
    password: string
}

interface User {
    avatar: string,
    buttins: string[],
    name: string,
    roles: string[],
    routes: string[]
}

interface UserInfo {
    id?: number;
    createTime?: string;
    updateTime?: string;
    username: string;
    password?: string;
    name: string;
    phone: string;
    roleName?: string;
}

interface UserRoleInfo{
    id?: number;
    roleName: string;
    remark: string | null;
}

interface RolesResult {
    assignRoles:UserRoleInfo[],
    allRolesList:UserRoleInfo[]
}


export type { LoginForm, User,UserInfo,RolesResult,UserRoleInfo }